package org.cloud.ext.util.res;

/**
 * @author xukk
 * @date 2020/3/10
 */
public enum ApiStatus implements ApiInfo {
    /**
     * 成功
     */
    SUCCESS(200, "SUCCESS"),
    /**
     * 一般错误
     */
    FAIL(1000, "FAIL");

    private int code;

    private String remark;

    private ApiStatus(int code, String remark) {
        this.code = code;
        this.remark = remark;
    }


    @Override
    public Integer code() {
        return this.code;
    }

    @Override
    public String desc() {
        return this.remark;
    }
}
